fix: do not re-render the default backend in haproxy-route-tcp#476
Open
skatsaounis wants to merge 6 commits intocanonical:mainfrom
Open
fix: do not re-render the default backend in haproxy-route-tcp#476skatsaounis wants to merge 6 commits intocanonical:mainfrom
skatsaounis wants to merge 6 commits intocanonical:mainfrom
Conversation
Thanhphan1147
approved these changes
Apr 21, 2026
Collaborator
Thanhphan1147
left a comment
There was a problem hiding this comment.
LGTM, thanks for working on this!
Contributor
Test results for commit da47c11Test coverage for da47c11 Static code analysis report |
Contributor
Test results for commit da47c11Test coverage for da47c11 Static code analysis report |
Contributor
Test results for commit da47c11Test coverage for da47c11 Static code analysis report |
Contributor
Test results for commit da47c11Test coverage for da47c11 Static code analysis report |
Contributor
Test results for commit da47c11Test coverage for da47c11 Static code analysis report |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applicable spec:
Overview
In case of
haproxy-route-tcp, if only one backend exists per frontend port, stop rendering it twice.Rationale
The current logic will render the backend as default, and instruct the frontend to use it. However, it will render it twice with a different name without any need for it, thus, creating an unused portion of the configuration.
The logic remains accurate for more than one backends sharing the same frontend port while using SNIs.
Juju Events Changes
N/A
Module Changes
N/A
Library Changes
N/A
Checklist
docs/release-notes/artifacts. If this PR does not require a change artifact, the PR has been tagged withno-release-note.urgent,trivial,complex)